package com.example.mylibrary.testActivity.Adapter;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.mylibrary.R;
import org.jetbrains.annotations.NotNull;
import java.util.List;
public  class testAdapter extends BaseQuickAdapter <adapterBean,BaseViewHolder>{
    public testAdapter(List<adapterBean> data) {
        super(R.layout.adapter_test, data);
    }
    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, adapterBean adapterBean) {
        baseViewHolder.setText(R.id.textView3, adapterBean.getName());
    }
//        testAdapter mAdapter = new testAdapter(data); //初始化
//        mAdapter.addChildClickViewIds(R.id.textView3); //添加可点击控件
//        mAdapter.setOnItemChildClickListener((adapter, view, position) -> {  //控件监听
//        if (view.getId() == R.id.bt_delete){ //监听指定控件}});
//        rvOffline.setAdapter(mAdapter);//绘制
}
